class Dog{
    public String name;//名字
    public String color;//颜色
    public void barks() {
        System.out.println(name + ": 旺旺旺~~~");
    }
    public void wag() {
        System.out.println(name + ": 摇尾巴~~~");
    }
}
public class test {
    public static void main(String[] args) {
        Dog dog = new Dog();
        dog.color = "黄毛";
        dog.name = "柳在锋";
        dog.barks();
        dog.wag();
    }
}
